package com.joinlabs.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.joinlabs.entity.Weibo;
import com.joinlabs.mapper.WeiboMapper;
import com.joinlabs.service.IWeiboByTypeidService;
@Service("weiboByTypeidService")
public class WeiboByTypeidServiceImpl implements IWeiboByTypeidService {
	@Resource
	private WeiboMapper weiboMapper; 
	@Override
	public List<Weibo> selectAllWeibo() {
		return weiboMapper.selectAllWeibo();
	}

	@Override
	public List<Weibo> selectAllWeiboByTypeid(Long typeid) {
		   List<Weibo> weibobytypeidlist =  weiboMapper.selectAllWeiboByTypeid(typeid);
			return weibobytypeidlist;
	}

}
